import request from '@/config/request'

// 首页列表
export const fetchIndexList = params => {
  return request({
    url: '/api/index/indexList',
    method: 'GET',
    params
  })
}

// 列表详情
export const fetchIndexDetail = params => {
  return request({
    url: '/api/index/indexDetail',
    method: 'GET',
    params
  })
}

// 会员卡列表
export const fetchVipList = params => {
  return request({
    url: '/api/index/memberType',
    method: 'GET',
    params
  })
}

// 用户收藏
export const collectApi = params => {
  return request({
    url: '/api/user.index/docollect',
    method: 'POST',
    params
  })
}

// 搜索列表
export const fetchSearchList = params => {
  return request({
    url: '/api/index/searchList',
    method: 'GET',
    params
  })
}

// 查看电话
export const fetchClientPhone = params => {
  return request({
    url: '/api/user.index/lookPhone',
    method: 'POST',
    params
  })
}

// 滚动播报
export const fetchRollList = params => {
  return request({
    url: '/api/user.index/roll',
    method: 'POST',
    params
  })
}
